package com.juyu.miliao.api.dao.mysql;

import com.juyu.miliao.api.domain.GiftMultiplierInfo;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 礼物倍数DAO
 *
 * @author xuanqicheng
 * @create 2019-15-16:07
 */
@Repository
public class GiftMultiplierInfoDao {

    @Autowired
    private SqlSession sqlSession;

    public List<GiftMultiplierInfo> selectByGiftId(int giftId) {
        return sqlSession.selectList("selectByGiftId",giftId);
    }


    public List<Integer> selectGiftIdByGiftMultiplierList() {
        return  sqlSession.selectList("selectGiftIdByGiftMultiplierList");
    }
}
